﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台系统登陆</title>
<style type="text/css">
#all {margin-left:auto; margin-right:auto; text-align: center;width: 540px;}
body {text-align:center;}
#main {background:url(/Images/images/login_mid.gif); height:240px; text-align:center;}
#title {height:66px;margin-top: 120px;}
#login { margin-top: 32px; width: 420px; margin-left: auto; margin-right:auto;}
#btm_left {background:url(/Images/images/login_btm_left.gif) no-repeat; width:21px; float:left;}
#btm_mid {background:url(/Images/images/login_btm_mid.gif); width:498px; float:left;}
#btm_right {background:url(/Images/images/login_btm_right.gif) no-repeat; width:21px; float:left;}
</style>
<script type="text/javascript" language="javascript">

    function ClearForm() {
        document.getElementById('UserName').value = '';
        document.getElementById('Password').value = '';
        if (document.getElementById('UserName').value == '' && document.getElementById('Password').value == '') {
            return false;
        }
        return true;
    }

</script>
</head>

<body>
<div id="all">
    <div id="title"><img src="/Images/images/login_title.gif" /></div>
    <div id="main">
@using (Html.BeginForm("Login","Account",FormMethod.Post,new {ID="login_form"}))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

        <table id="login">
        	<tr>
            	<td>用户名称：</td>
                <td><input type="text" name="UserName" id="UserName" size="32" style="background:url(/Images/images/username_bg.gif) left no-repeat #FFF; border:1px #ccc solid;height: 20px; font-family:Arial, Helvetica, sans-serif; font-size:14px; font-weight: 800; margin:0; padding-left: 24px;" /></td>
            </tr>
            <tr><td></td><td></td></tr>
            <tr><td></td><td></td></tr>
            <tr>
            	<td>用户密码：</td>
                <td><input type="password" name="Password" id="Password" size="32" style="background:url(/Images/images/password_bg.gif) left no-repeat #FFF; border: 1px #ccc solid; height: 20px; font-family:Arial, Helvetica, sans-serif; font-size:14px; font-weight: 800; margin:0; padding-left: 24px;" /></td>
            </tr>
            <tr>
            	<td></td>
            	<td style="text-align: left; padding-top: 32px;">
                	<input type="image" src="/Images/images/login.gif" name="submit" onclick="return submit();" />&nbsp;&nbsp;&nbsp;
                    <input type="image" src="/Images/images/cancel.gif" name="cancel" onclick="return ClearForm();" />                    
                </td>
            </tr>
        </table>
}
    </div>
    <div id="btm">
        <div id="btm_left"></div>
        <div id="btm_mid"></div>
        <div id="btm_right"></div>
    </div>
</div>
</body>
</html>
